refactor alarm status