working on outOfMemory