little improvements on the frequency function and some other little changes