applying resampling to forward_model script