add a line to throw an error when the argin filt_opt is not a struct