refactoring, action types