cleaned up gen_tokenized