updated try catch
updated try catch