removes scope