argv was out of the fn scope, what caused accumulation probles