changed variable so assigned by reference