preparing the def start_analysis