understanding how to use alarm