change node name get function to getName