char to number conversion not working yet