pass ref to message