fixed bug in increaseFrequency method and set initial frequency to 1