fitting routine simplified