passing message object