remove  unnecessary write