modified inverse method.