fix reused variable name error, arg