working on script to generate graphs.