Revert "do not traverse the ev array"

The traversal is to check it the specified led is already in the array.

This reverts commit 421f6af6d46dbfb9e092b868d78ca10d525333c1.