issue #229 changing variables in graph method