add index for analytic