algorithm included into et.h