added a is_same_unit() function to see if two names are infact the same unit.