removes default arguments from trees