working tokenizer