doesn't work, too slow, out of memory