added compare 2 functions for udi