update scope