update code comment to reflect the index change