move iteration to frequency method