encoding message improved
encoding message and structure improved