pass by reference error