refactor alarm report