change frequency value calculation
change frequency works from now on
Merge remote-tracking branch 'origin/master'