removing unused roots from the things as its defining things on glbal or window