add nll curve for R and k