Something wrong with print commands

changed to printf