fixing run script ... replacing the thirdPart of the calculation of Z