updated with local parametrization of the orientation