ed two types of