error refactoring