remove logic for optimizing reindex..it is too error prone