update ref attribute file