free up some variables
merge