state and type filters working