Minor Refactoring for readability

Refactored of a small portion if the scope code for readability
Merge pull request #234 from tstorch/small_refactor

Minor Refactoring for readability