use sprintf when no echo