example for add subscribe method event