changed code to do one standard deviation for time prediction