updating the topology