correct generate_messages() command mistake