update ref structure