fixed typo that caused frequency 2 to be ignored