remove some unused elements