add some head file and plot code