added a break to the loop so if there are no cells with either label or data attached to the class, then these are skipped