start writing message protocal part