reduced heap to fit program into memory