add the message.data paramater

added message in the function