scoping fix?