fixed superfluous increment