You don't need to use a forEach; just change to use i++