add index optimization