updated source for char