new function added.
extended to report the ratio graph.