update for fitR