changed WeatherData parse method to tryParse