updated for notify