refactor pallet 6x