minor scala migration