update main index