Teg: grinding wheel codes