finish unique TID generation