updating functions, need to update print function to handle other special characters`