switch scope of match