rename index to main