tracked down erroneous passing by reference - hurray for copy.deepcopy