interchanging values of size for tree