implemented the alarms and the behavior