corrected errors in array indexing