add filter for key-value pair