began code for communication