miller 8 working at line frequency using a for loop