Removed line that caused output error
realized that change i made earlier was incorrect and i needed to remove
the increment line when i changed the while loop to a for loop