involving filtering within a prediction loop