++i corrected to i++