added old rp solver