small changes to kosaraju