use more memory to speed up