mod hgqkdiff3.sh & hgqmc.sh