working on frequency change bug