attempted changing sparkLines to a function, didn't work