added notify subscribers functionality