removed unused codes
renamed into success and failure
code cleanup