logic that should be there for obj, renamed _obj to oldObject