changed layout of mh.scala