minor tweaking of bin tree of JD