write_trun() has more parameters