added the ed.cat function
typo in ed.cat function