exception handleing
updating example