added function for print