fixed #1559 by removing duplicate definition of success
Merge pull request #1560 from Kurry/1559-fix-for-redefinition-of-success

fixed #1559 by removing duplicate definition of success