started working on alarm functinality