initial conversion from hg