removed parent and deep copying of params, vars