Successfully access data members within labelNames in function call