fixed error for parametric bootstrap + changed bootstrap to deterministic computation