updating object refrences