changed to use ascii codes