this works nicely. Needs buffering
working with chart. bad variable formatting