removing repeated glyph types