properly wrap curried function