wrapped array operations in bounds checked and inserted the necessary marks to indicate where in an expression the error occurred.