work on printing template (using table)