fixed the frequency issue