added index for scan