Replace deprecated method calls

scoped is now deprecated so updated to call all which returns a scope.