fixed #7, make the parent wait until child has finished before results of mean()