mandelbrot function is being cleaned