scrpt to automate data filtering added