for Scala