added message tostring function