change echo to printf