begining of protocol