remove some attributes