small changes for completeness (removed XYZlength() from box because its in size anyways)