updates relationships