collapse token types