code cleanup tokenize.