commented debug lines in TR function