added try catch to catch 101 error