change the scale of text based on length
some small changes