beeper subroutine template