empty vectors before memcpy