clear everything and add empty index