Rewrote category filter function