adding beep timer code