changed mhm to use arrays not maps