handle out of bounds array references