error in compiling subclass conditions on Notifications