simplified!
Merge pull request #3 from FreeER/master

simplified failure function...