refactoring processors