working for index file