remove warnings "shadowing outer local variable"