before edit filterData.c