working on the filtering of categories