midpoint takes care of nodelabels