1.fixed query condition
2.added prototype of ecg decoder