removes duplicate write