re-write t