these two new vars are shared in all code, why do we need to pass as parameters?