changed syntax and semantic for notify