fixed bug after effectivisation, atmel reformatted some code as well