updated event api
updated event api