cleaning modified RandomIndexing class