tried to handle sending message issue