use brackets for array access (resubmitted)

this one's automatically mergeable, I bet. thanks @jcla1!