using list comprehensions to publish messages
publish message sent with correct format