change scope of local variables to prevent potential conflicts.