adding graphs thanks james