added try-catch to avoid error for wrong symbols