convert print to message