changed label generation