added WriteBytes()