update topology