using what's passed to the function might be safer