simplify message.java