moved the message method out of the private scope to solve issue 39