tried to fix out of memory error, still happens...sometimes
tried to fix out of memory error, still happens...sometimes RES