needed mode "wb"