address Paul's comment, check the size of index before and after deletion