write_or_di