filtering out categories