call recurse when index file is empty