updating topology