removing event api reference