delete the unnecessary scope