added WriteBytes