adjusting text for number of nodes in components