adding main index