added parameter subsitution for root