add index for collection