reorganizing the scripts