add index support for add