compareDefinitions