renamed is_alarm to is_alarm_on to make its function more obvious