write add/remove index method in progress