change the avr on run time