added tau switch heuristic