changed variable names; passed address