refactoring forma alerts