array indices are hard