convert dig method to code like "QD"