using apply to force scope update