dynamic label generation working