improve curry

Signed-off-by: Andrew <a@0x41.co>