rearranged parameters, made topic base a variable