adds messages for each topic