added the actual alarm functionality