curry external functions