updated a case class to match with the API