removed unnessary tree variable