main2 with new filtration