updated AVR program