for scala