alarm create logic