updating relationships