tsg code