fixing graph output