replaced old topics code with the new one