change object to message