use document categories instead of separate call