refactor labels