add curry fn