fixed partials_return_type to give scalar values