added #each_cell looping function