add index for the problem