rearrange tokenizer