try in Scala way