setting up methods in senderMessage