refined the label creation method of data ranges