remove (unused) index variable