java -> scala 2