initial implementation of simple set alarm function