add index for insert