Scala migration: adjust