improved label code
improved scale