got rid of getCharCode()