receive and send mesage