changed to accept message