remov and add index