error usage refactoring.
error refactoring.