added n to flux. updated fit selector