added errors to graph drawing