val in for comprehension is deprecated in 2.10.0