change object comparison function