removing the pass by reference