add user functions
user function def