deleted commented out sendmessage function