corrected issue in calculate not limiting to 2 inf