added parcical curry function.