update ref to data