remove some elements