group topics under topic key