added code for integer to char