started adding alarm function