add f(p)=log(p)