port done

bug in tc1797