fix th and print result