change mds.single to treespace.single

because I couldn't find the function I wanted, and I wrote it.