added graphing