added example notify function