resolve out of memory