changing the name of the compare function