compareNames fixed