add replace task for index