removing extra and