improve freq discrimator