adding compareobject changes