made some changes to index