one more code for ch7, and encoding problems