changed main to index