removed ncflux func