I have changed it to reference but can make it const because I need to call a non const function collect_statistics( ) on it .