remove extraneous text in printfs