some typos and remaining iostream