scala utility