changed buzzer to an interrupt