organize index file