generate on re-allocated buffer