code to determine NC histograph information