update to indexing, deleteDoc