removed unnecessary parameter in joinTree