changed gprintf/wprintf