message and state