update ncell.m