update filter logic
more fast #getLogs