utility functions for node labels