added notify-function