add weighted mode filter
update weighted range filter