fit-grains loops over the tolerance lists