removed duplicate write