this is the analysis code belonging to the measurements