//TODO: if there is only one sub treee