tried to assign int value to char type