that is the pourpose of "output"? it isn't changed, so it will likely be always NULL