changed main to main index