return index and clean all