made default alarms a general function for any list of alarms