erase all code and begin from scratch for index and tests