added topic id as an arg