change node height to closest leaf