complete function 2 and 3(with out beep),but havnt check on device yet