ellipsoid implemented