added try / catch and a comment