moved type TGrid to the case class