tweaks to box and ellipsoid