update ref.