implements category search restriction