topological works now, minor bug fixed