modified case class