use promise for filter function
add csv filter