lower the memory cost of wrap
reduce memory