remove useless twigs