fix notation for accessing array element