started work on iteration over the labeling