changed maximum value of frequency to 20,000