updated tztag_dist.cpp