only filter if where is func