case class was not mandatory