remove extraneous i += 1