$ 0 0 I know why my example wasn't working, I declared val as a global and each iteration of draw() was appending to the variable.doh!!!