Atmel Studio Does not fire accurate timer interrupt
the problem was solved 
the compiler was output the following warning 

# warning "Compiler optimizations disabled; functions from &lt;util/delay.h&gt; won't work as designed"


so when i set the optimization level to any optimization level the oscilloscope give me the 500ms timer-interrupt