added scope apply