use curry2 to remove boilerplate

Sure thing. I'll revert this change.