switch mhash for hash