updated LINQ provision for queries