adding few variables to improve efficiency measurement in the finalTree