changes in the coordiates in calculating the box