added pallet functionality