add logfreq instead - should improve freq generation