added finalState tracking