update ncell and overlay