added new option for reindexing an object