changed storeAlarm to addAlarm