code for converting TDT tanks