added functionality for searching of pallets