unnecessary pass by reference