refactoring pickup error.