tried to fix bottleneck in mandelbrot