optimization of qv filtering