scripts updated to sort the boxes