add data processing function. select data rows by condition