Coding done for index changes