remove some unnecessary rows