Conventional and modern methods to mitigate harmonics