generic print table