made grid indices an ordered dict