removed printing in cpp