made preferredLocation a val of the surrounding case class