refactored topic and document collections