RF: fixed it so that the xval takes model instead of stimulus (which contains the stimulus)