typo and pass by reference