scala enhancement