renamed index to main