replace all the reference of namedtuple to new hacked one