make filter work with response object