added error result to sub Notify
code formatting