added ToList delegate for testing logging