bug fix

discovered and fixed pass by reference bug.   old code displayed the
same values for x, y, and z for all states in history.