fixing tolerance