implemented tokenizer