updated textMessage to pass message