added first stage of label iteration