remove remnants of index