add recreate index method