fixing tarjan algo (now it's ok)