change boost formula to log(freq)