simplified nce code