added main label generation