fixed typos
Changed to printf