typo and scoping fix