index to main