refactored item finding code