making sure mutate does not loose variables (was not using NamedListAccumulator) correctly