Improving power quality in real-life applications