added try method