added potential_analysis_bootstrap function