update the topology