remove superfluous increment of index