added error handling for when langauge isnt set.