wrote tokenizer