change reference to correct object