update curry function