fixed global cell numbering issue and set default value for neihgboring cells.
remove output.