remove bytearrayoutputstream size, and kept it default 32bytes