modification for g++ compilation and English character