fix shadowed variable warning