update knit_print method