peparing for message passing