cleaned up main index