fix char passing