from variation to frequencies
function frequencies added