adding state filter