solve revp