run the whole procedure multiple times to get better averages