reindex method