tweak scoped array usage