fields parameter is filled automatically by property names of case class