in the process of making the send message function working