refactor glyph