scoping issues