add data for messages and department