improved the alarm capability