added index logging