implemented alarm