changed to wchar