added equal for user defined functions.