clean up alarm intent code