adding more alarm functionality