estimates and plot code