changed to rCurry