swaping the boxs