integrated Kiran's changes to the ECG