filter updated for the new csv/xml format