added ncplot function