refactor scopes for period base