foreach (var entry in entries)
    {