user definition functions for hive