added printing feature