replaced the index