renamed main to index