updating nodes after adding