Sweeping over the trees