removed mg_fmt()