added function to init label