tighten scopes for better memory footprint