display array works, then added SUM function
comments about possible incorrect variable location