use HashSet.empty[Long] instead of Seq[Long]