fixed heapspace error, mybe