tried to use template for printing