adding the mean store assignment