moved fractal calculation to own header