added try to Error