needs to be converted from doubles to char