changing print to printf