fixed ifelse for loop for predictions but it appears to be taking weeks, only 3% after 10 hours