added pallet code