added success and failure messages