added dipole component filtering functionality