updated TkTau algorithm