extract insert and add topics methods