shadowing variable warning removed