updating related node data structure