refactoring createLabel()