why do we need to reset the variables?