fixed call by reference