filtering with different weights