removed dict append(mi and changed it to dict:store(mi