lines 75,76.. 87 changed to row instead of col, 104 same, 166 see comments. all changes marked with iCHANGE