printf implemented working code cleaning missing