filtering step added