remove unnecessary scope