fix scope deprecation error
Merge pull request #41 from jlambert121/scope_deprecation

fix scope deprecation error