upgraded gen_sym to allow name selection