updating related data