add write to device