refactoring pickup error