adding nested loop and new cell conditon after repair