add new user define func