added tau calculation and get_tau method