implemented functionality for adding pallets