A method and a system for determining an AC input voltage in an output side of an isolated switching power supply are disclosed. Additionally, the cleaning featured method and system can clean the media while the abrasive media is being used as well as when the abrasive media is not being used. A pattern with minimal LER is obtainable.