scope wrangling