update the action
add filter function