add index to add and insert.