saving index file