corrected order of array  and initilization errors