implemented eap deterioration

Needs testing!