forgot to change hm and ee inside the for loops