adding calculated graph functionality