select middle as root