topological sort - change

-fix needed