EHN: reduce function and doc