final script and prediction file