attempt to fix OutOfMemory problem