corrects erroneous interval calculations