change the alarm method