extra i++ removed