search by category working