added TID struct and getTID