fixed the problem that is missing '&' for the arguemnt that is updated in the method.