updated pref compare to look at equality then node ids