revised ellipsoid formulation