little fix for the Option and val error