record dynamic dependency when define event