corrected array access declaration