re set some variables