added charProp to genx.c file