changing tdc plot input structure