scheduling alg corrected
updated save prediction in a json file