fixed ascii values and null pointers