removed svg, added try block