rewrote ECHS