adds logic in case topic doesn't exist for course