script to combine orders