update ref to sub2