finalized tokenize()