changed to reg
trivial fix of char