change order of lambda an curry