bug - mangled text in variable