chenge frequency method
Merge branch 'master' into shahdk
minor changes 2