in the **else** context it looks like val doesn't exist