added alarm and tested