start coding of protocol