call scope properly