free up some variables