passing message via buffer