decoupled category from the document id