finished the alarm feature