topological sort - still unchecked