more scala style