Solve revp problem