the main and the index