added more time constraints in topo_update