changes to createPallet and createBatch