xtol should be class variable